package com.cloudtasks;

import android.app.Application;
import android.content.Context;

public class TaskApplication extends Application {

    interface TaskListener {
        void onTaskUpdated(String message, long id);
    }

    private TaskAdapter adapter;

    public TaskAdapter getAdapter(Context context) {
        if (adapter == null) {
            adapter = new TaskAdapter(context);
        }

        return adapter;
    }

}
